<?=form_open(uri_string())?>
<table class="form">
    <tr>
        <td class="required label" style="width: 150px;"><?=lang('news_name');?></td>
        <td colspan="2"><input type="text" name="lb_title" id="lb_title"class="w350" value="<?=htmlspecialchars($rs->lb_title)?>"></td>
    </tr>
    <tr>
        <td class="label"><?=lang('news_image');?>
            <br>
            (135x110)</td>
        <td colspan="2"><input type="text" name="lb_image" class="w350" value="<?=$rs->lb_image;?>" id="hinhanh">
            <a href="<?=base_url()?>index.php/filemanager/index/hinhanh" id="addimages" class="cboxElement" title="<?=lang('add_file');?>"> <img src="<?=base_url()?>templates/images/icon/attach.png" alt=""> </a></td>
    </tr>
    <tr>
        <td class="label"><?=lang('news_category');?></td>
        <td colspan="2">
        <select name="category_id" id="category_id" class="w200">
            <option value="0"></option>
            <?php 
                foreach($postcat as $row) :
                    $listsub1 = $this->news->get_Parent($row->category_id);
            ?>		<option value="<?=$row->category_id;?>" <?php if($row->category_id==$rs->category_id){echo 'selected="selected"';}?>><?=$row->lb_category;?></option>
             <? //if(count($listsub1) > 0){?>
                  <? //foreach($listsub1 as $sub1):
                        //$listsub2 = $this->news->get_Parent($sub1->category_id);
                  ?>
                  <!--<option value="<?//=$sub1->category_id?>">¦&nbsp;&nbsp;<?//=$sub1->lb_category?></option>-->
                  <? //endforeach;
                //}?>
            <? endforeach?>
        </select></td>
    </tr>
    <tr>
        <td class="label"><?=lang('active_deactive');?></td>
        <td colspan="2"><input type="checkbox" name="bl_active" id="bl_active" <?php if($rs->bl_active==1) echo 'checked'; ?> value="1" /></td>
    </tr>
    <tr>
        <td valign="top" class="required label"><?=lang('news_sub');?></td>
        <td colspan="2"><textarea style="width: 500px;height: 100px;" name="lb_summary" id="lb_summary"><?=$rs->lb_summary;?></textarea></td>
    </tr>
    <tr>
        <td  class="label"><?=lang('news_content');?></td>
        <td colspan="2"><textarea class="full field" cols="" rows="" name="lb_content" id="wysiwyg-advanced"><?=$rs->lb_content;?></textarea></td>
    </tr>
    <tr>
        <td valign="top" class="label"><?=lang('news_keywords');?></td>
        <td colspan="2"><textarea style="width: 500px;height: 100px;" name="lb_keyword" id="lb_keyword"><?=$rs->lb_keyword;?></textarea></td>
    </tr>
    <tr>
        <td colspan="3" align="center"><input type="submit" name="bt_submit" value="" class="capnhat"></td>
    </tr>
</table>
<?=form_close()?>
